package com.zq.learn;

import com.zq.learn.grpc.HelloServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class GrpcServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(GrpcServerApplication.class, args);

		//启动服务
    try {
      HelloServer helloServer = new HelloServer();
      helloServer.start();
      helloServer.blockUntilShutdown();
    }catch (Exception e){
      e.printStackTrace();
    }
  }

}
